home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / ObjectTcl-1.1 / OtclAttribute.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-30  |  3.7 KB  |  87 lines

  1. #ifndef OTCL_ATTRIBUTE_H
  2. #define OTCL_ATTRIBUTE_H
  3.  
  4. /*  _ __ ___ _
  5.  * | |\ /  /| |  $Id: OtclAttribute.H,v 1.6 1995/05/09 16:14:22 deans Exp $
  6.  * | | /  / | |  Copyright (C) 1995 IXI Limited.
  7.  * |_|/__/_\|_|  IXI Limited, Cambridge, England.
  8.  *
  9.  * Component   : OtclAttribute.H
  10.  *
  11.  * Author      : Dean Sheehan (deans@x.co.uk)
  12.  *  
  13.  * Description : Header file for OtclAttribute and OtclAttributeTemplate
  14.  *               classes that model attribute in objects and classes.
  15.  *
  16.  * License     :
  17.             Object Tcl License & Copyright
  18.             -----------------------------
  19.  
  20. IXI Object Tcl software, both binary and source (hereafter, Software) is copyrighted by IXI Limited (IXI), and ownership remains with IXI. 
  21.  
  22. IXI grants you (herafter, Licensee) a license to use the Software for academic, research and internal business purposes only, without a fee. Licensee may distribute the binary and source code (if required) to third parties provided that the copyright notice and this statement appears on all copies and that no charge is associated with such copies. 
  23.  
  24. Licensee may make derivative works. However, if Licensee distributes any derivative work based on or derived from the Software, then Licensee will (1) notify IXI regarding its distribution of the derivative work, and (2) clearly notify users that such derivative work is a modified version and not the original IXI Object Tcl distributed by IXI. IXI strongly recommends that Licensee provide IXI the right to incorporate such modifications into future releases of the Software under these license terms. 
  25.  
  26. Any Licensee wishing to make commercial use of the Software should contact IXI, to negotiate an appropriate license for such commercial use. Commercial use includes (1) integration of all or part of the source code into a product for sale or license by or on behalf of Licensee to third parties, or (2) distribution of the binary code or source code to third parties that need it to utilize a commercial product sold or licensed by or on behalf of Licensee. 
  27.  
  28. IXI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. IXI SHALL NOT BE LIABLE FOR ANY DAMAGES WHATSOEVER SUFFERED BY THE USERS OF THIS SOFTWARE. 
  29.  
  30. Copyright (C) 1995, IXI Limited 
  31.  
  32. By using or copying this Software, Licensee agrees to abide by the copyright law and all other applicable laws of England and the U.S., including, but not limited to, export control laws, and the terms of this license. IXI shall have the right to terminate this license immediately by written notice upon Licensee's breach of, or non-compliance with, any of its terms. Licensee may be held legally responsible for any copyright infringement that is caused or encouraged by Licensee's failure to abide by the terms of this license. 
  33.  
  34. Comments and questions are welcome and can be sent to
  35. otcl@x.co.uk 
  36.  
  37. For more information on copyright and licensing issues, contact: 
  38. Legal Department, IXI Limited, Vision Park, Cambridge CB4 4ZR,
  39. ENGLAND. 
  40.  
  41.  *
  42.  */
  43.  
  44. // Tcl Includes
  45. #include <tcl.h>
  46.  
  47. // Forward Structures
  48. struct Var;
  49.  
  50. class OtclAttribute 
  51. {
  52. public:   // Constructor & Destructor
  53.  
  54.    OtclAttribute (Tcl_HashEntry *, int isArray, char *initialiser,
  55.                   Tcl_Interp *);
  56.  
  57.    ~OtclAttribute ();
  58.  
  59.    operator Var * ();
  60.  
  61. private:
  62.  
  63.   Var *var;
  64.  
  65. };
  66.  
  67. class OtclAttributeTemplate
  68. {
  69. public:   // Public Constructor & Destructor
  70.  
  71.    OtclAttributeTemplate (Tcl_Interp *interp, int isArray, char *initialiser);
  72.  
  73.    ~OtclAttributeTemplate ();
  74.  
  75. public:  // Public Instance Methods
  76.  
  77.    OtclAttribute *instantiate (Tcl_Interp *interp, Tcl_HashEntry *hashEntry);
  78.  
  79. private: // Private Instance Attributes
  80.  
  81.    char *initialiser;
  82.    int isArray;
  83.  
  84. };
  85.  
  86. #endif // OTCL_ATTRIBUTE_H
  87.